package com.javen.oauthserver.dao;

import com.javen.oauthserver.domain.SysUser;
import org.apache.ibatis.annotations.*;

import java.util.List;

/**
 * @Description: com.javen.oauthserver.dao
 * @Author: tujw@netinnet.cn
 * @Date: 2023/9/19 17:06
 */
public interface UserMapper {

    @Select("select 1 as id, 'javen' as username, '$2a$10$FVvMQ2f8HbqDSoIrbEKfWOUQPRoapI5dIJkwgN25gNVfEpuHuReqi' as password from dual")
//    @Results({
//            @Result(id = true, property = "id", column = "id"),
//            @Result(property = "roles", column = "id", javaType = List.class,
//                    many = @Many(select = "com.example.mapper.RoleMapper.findByUid"))
//    })
    public SysUser findByUsername(String username);

}
